package org.mzyyn.qr.service.auction;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.mzyyn.qr.dto.auction.BidDTO;
import org.mzyyn.qr.dto.auction.BidListDTO;
import org.mzyyn.qr.dto.goods.PageQueryDTO;
import org.mzyyn.qr.entity.AuctionGoodsPO;
import org.mzyyn.qr.vo.auction.BidListVO;
import org.mzyyn.qr.vo.auction.BidRedisVO;
import org.mzyyn.qr.vo.auction.BidVO;
import org.mzyyn.qr.vo.goods.GoodsListVO;

import java.util.List;

/**
 * <p>
 * 拍卖 服务类
 * </p>
 *
 * @author lipeng
 * @since 2024-09-23
 */
public interface AuctionService {
    /**
     * 出价
     * @param bidDTO
     */
    BidVO bid(BidDTO bidDTO);

    /**
     * 出价列表信息
     * @param bidListDTO
     * @return
     */
    List<BidListVO> bidlist(BidListDTO bidListDTO);

    /**
     * 商品最新出价
     * @param goodsId
     * @return
     */
    BidRedisVO getLatestPrice(String goodsId);
}
